package com.program.facesigninsystem.service;

import com.program.facesigninsystem.entity.User;
import com.program.facesigninsystem.entity.UserInfo;

import java.util.List;
import java.util.Map;

/**
 * @author sxw
 */
public interface IRedisService {
    void addUser(String uid,String ip,String loginTime,String errorCounts);

    void addUserInfo(UserInfo userInfo,String Class);

    User findByUId(String uid);

    UserInfo findUser(String uid);

    void updateBindid(String uid,String bindid);

    void updateUser(String uid, String name, String studentId, String nickname,int type, String major, String uclass, String university, String academy,
                    String avatar,String sex,int age,String address,String phone,String email);

    void updateByUId(String uid,String ip,String loginTime);

    void updateLogin(String uid,String errorCounts,String nextLogin);

    void addRank(List<Map<String, Object>> rank);

    List<Map<String, Object>> getRank();
}
